<h1>Listing zones</h1>

<table>
  <tr>
    <th>Virtual number</th>
    <th>Name</th>
    <th>Top room number</th>
    <th>Lifespan</th>
    <th>Zone reset mode</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @zones.each do |zone| %>
  <tr>
    <td><%= zone.virtual_number %></td>
    <td><%= zone.name %></td>
    <td><%= zone.top_room_number %></td>
    <td><%= zone.lifespan %></td>
    <td><%= zone.zone_reset_mode_id %></td>
    <td><%= link_to 'Show', zone %></td>
    <td><%= link_to 'Edit', edit_zone_path(zone) %></td>
    <td><%= link_to 'Destroy', zone, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Zone', new_zone_path %>
